import request from '@/utils/request'

// 查询电子签章列表
export function listElectronicSignature(query) {
  return request({
    url: '/system/electronicSignature/list',
    method: 'get',
    params: query
  })
}

// 查询电子签章详细
export function getElectronicSignature(id) {
  return request({
    url: '/system/electronicSignature/' + id,
    method: 'get'
  })
}

// 新增电子签章
export function addElectronicSignature(data) {
  return request({
    url: '/system/electronicSignature',
    method: 'post',
    data: data
  })
}

// 修改电子签章
export function updateElectronicSignature(data) {
  return request({
    url: '/system/electronicSignature',
    method: 'put',
    data: data
  })
}

// 删除电子签章
export function delElectronicSignature(id) {
  return request({
    url: '/system/electronicSignature/' + id,
    method: 'delete'
  })
}

// 导出电子签章
export function exportElectronicSignature(query) {
  return request({
    url: '/system/electronicSignature/export',
    method: 'get',
    params: query
  })
}
